<template>
  <a-card :bordered="false">
    <a-steps class="steps" :current="currentTab">
      <a-step title="基本信息" />
      <a-step title="完成" />
    </a-steps>
    <div class="content">
      <user-ext-step1 v-if="currentTab === 0" @nextStep="nextStep"/>
      <user-ext-step3 v-if="currentTab === 1" @prevStep="prevStep" @finish="finish"/>
    </div>
  </a-card>
</template>

<script>
  import UserExtStep1 from './Step1'
  import UserExtStep2 from './Step2'
  import UserExtStep3 from './Step3'
  import CommonUserExtParams from '@views/community/modules/step/CommonUserExtParams'

  export default {
    name: "MembUserExtStepForm",
    components: {
      UserExtStep1,
      UserExtStep3
    },
    data () {
      return {
        description: '下发名单',
        currentTab: 0,
        disableMixinCreated:true,//JeecgListMixin created 不执行

        // form
        form: null,
      }
    },
    created() {
      console.log('TaskStepForm.vue created');


    },
    methods: {
      // handler
      nextStep () {
        if (this.currentTab <2) {
           this.currentTab += 1
        }
      },
      prevStep () {
        if (this.currentTab > 0) {
           this.currentTab -= 1
        }
      },
      finish () {
        this.currentTab = 0
      }
    }
  }
</script>

<style lang="less" scoped>
  .steps {
    max-width: 750px;
    margin: 16px auto;
  }
</style>